<?php if (!is_null($categories)) :?>
<?php foreach ($categories as $category):?>
<li><?php echo CHtml::link($category->name,array('site/store','section_id'=>$category->section_id,'category_id'=>$category->id));?><br />
</li>
<?php endforeach; ?>
<?php endif; ?>